// +---------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +---------------------------------------------------------------------
// | Copyright (c) 2016~2022 https://www.crmeb.com All rights reserved.
// +---------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +---------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +---------------------------------------------------------------------

import BasicLayout from '@/components/main';

const pre = 'supplier_';

export default {
  path: '/admin/supplier',
  name: 'supplier',
  header: 'supplier',
  redirect: {
    name: `${pre}list`,
  },
  component: BasicLayout,
  children: [
    {
      path: 'list',
      name: `${pre}list`,
      meta: {
        auth: ['admin-supplier-list'],
        title: '合同管理',
      },
      component: () => import('@/pages/supplier/contract/index'),
    },
    {
      path: 'detail/:id?',
      name: `${pre}detail`,
      meta: {
        auth: ['admin-supplier-detail'],
        title: '合同详情', 
      },
      component: () => import('@/pages/supplier/contract/detail/index'),
    },
    {
      path: 'expire',
      name: `${pre}expire`,
      meta: {
        auth: ['admin-supplier-expire'],
        title: '到期合同',
      },
      component: () => import('@/pages/supplier/expire/index'),
    },
    {
      path: 'payment',
      name: `${pre}payment`,
      meta: {
        auth: ['admin-supplier-payment'],
        title: '待付款项',
      },
      component: () => import('@/pages/supplier/payment/index'),
    }
  ],
};
